package com.eboss2.sbs.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.eboss2.sbs.R;
import com.eboss2.sbs.activity.base.BaseActivity;
import com.mytools.tool.activityManager.MyActivityManager;

public class MyAddOperatorActivity extends BaseActivity implements View.OnClickListener{

	private TextView tv_account_no;
	private TextView tv_device;
	private EditText et_account_no;
	private EditText et_login_pwd;
	private EditText et_name;
	private EditText et_phone;
	private RelativeLayout rl_device;
	private RelativeLayout rl_pos;
	private RelativeLayout rl_app;




	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mContext = this;
		setContentView(R.layout.activity_my_add_operator);
		MyActivityManager.getInstance().addActivity(this);
		initView();
	}
	
	private void initView(){
		showView(R.id.titleback_btn_back, true);
		setTvText(R.id.tv_title, "新建员工");
		showView(R.id.next_sure, false);
		findViewById(R.id.titleback_btn_back).setOnClickListener(this);

		tv_account_no = textView(R.id.tv_account_no);
		tv_device = textView(R.id.tv_device);

		et_account_no = editText(R.id.et_account_no);
//		et_account_no.clearFocus();
//		et_account_no.setCursorVisible(false);
		et_login_pwd = editText(R.id.et_login_pwd);
//		et_login_pwd.clearFocus();
//		et_login_pwd.setCursorVisible(false);
		et_name = editText(R.id.et_name);
//		et_name.clearFocus();
//		et_name.setCursorVisible(false);
		et_phone = editText(R.id.et_phone);
//		et_phone.clearFocus();
//		et_phone.setCursorVisible(false);

		rl_device = relativeLayout(R.id.rl_device);
		rl_device.setOnClickListener(this);

		rl_pos = relativeLayout(R.id.rl_pos);
		rl_pos.setOnClickListener(this);

		rl_app = relativeLayout(R.id.rl_app);
		rl_app.setOnClickListener(this);



	}





	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.titleback_btn_back:
				finish();
				break;
			case R.id.rl_device:

				break;
			case R.id.rl_pos:
				startActivity(new Intent(mContext, MyDeviceFunctionActivity.class));
				break;
			case R.id.rl_app:
				startActivity(new Intent(mContext, MyAppFunctionActivity.class));
				break;
			default:break;
		}
	}

	
}
